/**
 * 
 */
package com.nikolvas.man;

/**
 * @author vnikolenko
 *
 */
public enum Sex {

	M("м"),
	F("ж");
	
	private Sex(String s){
		litera = s;
	}
		
	private String litera;
	
	public static Sex getByLitera(String litera){
		for(Sex v:Sex.values()){
			if ( v.litera.equals(litera) )
				return v;
		}
		throw new RuntimeException("Not Sex value with litear " + litera);
	}
}
